<?$this->_extends("_layouts/index_layout");?>
<?$this->_block("contents");?>

<div class="main colorbg1 mt10"><span class="color2 ml10">您现在的位置：</span><a href="<?php echo url('index');?>">主页</a> <?php echo $location;?></div>
<div class="main mt10">
 <dl class="px mb10 fleft border3" id="menu_dt">
<?php
echo $left;
?>
</dl>
  <div class="border1 width740 fright" style="min-height: 400px">
    <!-- Baidu Button BEGIN -->
<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
<span class="bds_more">分享到：</span>
<a class="bds_qzone"></a>
<a class="bds_tsina"></a>
<a class="bds_tqq"></a>
<a class="bds_renren"></a>
<a class="bds_t163"></a>
<a class="shareCount"></a>
</div>
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=0" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
<!-- Baidu Button END -->
    <div class="title"><?php echo $news['title'];?></div>
    <div class="color3 center">时间：<?php echo date('Y-m-d', $news['release_date']);?> 点击数：<?php echo $news['hits'];?></div>
    <div class="color5 mt20 mb20 ml10 mr10">
      <?php echo stripslashes($news['content']);?>
      <?php 
    //print_r($enclosure);
    if(!empty($enclosure)){?>
      <div>
        <?php
     $count = 0;
       foreach($enclosure as $k => $v){
      $file_name = explode('.',$v['name']); 
      $count ++;  
    ?>
        <p> 附件<?php echo $count;?>：<a href="<?php echo $_BASE_DIR.$v['path']?>" target="_blank" title="点击下载附件"><?php echo $file_name[0];?></a> </p>
        <?php }?>
      </div>
      <?php }?>
    </div>

    <div class="clear"></div>
  </div>
  <div class="clear"> </div>
</div>
<?$this->_endblock();?>

